﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Orchard.Data;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;
using Orchard.ContentManagement.Handlers;


namespace Orchard.Commerce.Models
{
    public class CategoryRecord : ContentPartRecord
    {
        public virtual int Id { get; set; }
        [Required]
        public virtual string Description { get; set; }
        public virtual string ImageName { get; set; }

        public virtual IList<ProductsCategoriesRecord> ProductsCategories { get; set; }

        public CategoryRecord()
        {
            ProductsCategories = new List<ProductsCategoriesRecord>();
        }
    }
}